package PTA.javaA;

import java.util.Arrays;

public class fn04 {
}
class Car implements  Cloneable{
    private String name;
    private CarDriver driver;
    private int[] scores;
public Car(){}

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public CarDriver getDriver() {
        return driver;
    }

    public void setDriver(CarDriver driver) {
        this.driver = driver;
    }

    public int[] getScores() {
        return scores;
    }

    public void setScores(int[] scores) {
        this.scores = scores;
    }

    @Override
    public String toString() {
        return "Car [name=" + name + ", driver=" + driver + ", scores=" + Arrays.toString(scores) + "]";

    }
}
class CarDriver {
    private String name;
    public CarDriver() {}
    //setter/getter
    //toString
}

